<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
<h:panelGroup id="messageSystem" rendered="#{loginSession.login.showGlobalMessage}">
    <center style="width: 100%">
        <div id="globalReport" class="globalReport">
            <p style="padding-top: -5px;"><h:outputText value="#{loginSession.login.globalMessage}"/></p>
        </div>
    </center>
</h:panelGroup>
<div style="float:left;width: 15.7%;">
    <div class="logo" id="logo">

        <a href="customerexpand.jsp?<h:outputText value="#{kapiMenu.md5url}"/>"><img src="../images/logo_1.png" alt="Nam Thinh" /></a>
    </div>
</div>
<div style="float: left;width: 63.9%;">
    <div id='cssmenu'>
        <ul>
            <li class='iconmenunew1 <h:outputText rendered="#{menuSettingController.stepmenu ==1}" value="active"/>'>
                <h:outputLink rendered="#{loginSession.right.MENU_ADM_VIEW}"  value="setting.jsp?#{kapiMenu.md5url}"><span><h:outputText value="#{locale.masterdata}" /></span></h:outputLink>
            </li>
            <li class="iconmenunew3 <h:outputText rendered="#{menuSettingController.stepmenu ==3}" value="active"/>">
                <h:panelGroup rendered="#{loginSession.right.MNU_SPQ_VIE}">                           
                    <h:outputLink value="Q350.jsp?#{kapiMenu.md5url}"><span><h:outputText value="#{locale.permission}" /></span></h:outputLink>
                </h:panelGroup>
            </li>
            <li class="iconmenunew4 <h:outputText rendered="#{menuSettingController.stepmenu ==4}" value="active"/>">
                <h:panelGroup rendered="#{loginSession.right.MNU_INF_VIE}">
                    <h:outputLink value="q175.jsp?#{kapiMenu.md5url}"><span><h:outputText value="#{locale.permission_employee}" /></span></h:outputLink>
                </h:panelGroup>
            </li>
            <li class="iconmenunew6 <h:outputText rendered="#{menuSettingController.stepmenu ==6}" value="active"/>">
                <h:panelGroup rendered="#{loginSession.right.MNU_LOG_VIE}">

                    <h:outputLink value="permissionlogin.jsp?#{kapiMenu.md5url}"><span><h:outputText value="#{locale.permission_login}" /></span></h:outputLink>

                </h:panelGroup>
            </li>
            <li>
                <h:panelGroup rendered="#{loginSession.right.MNU_DSQ_VIE}">

                    <h:outputLink value="q300.jsp?#{kapiMenu.md5url}"><span><h:outputText value="#{locale.list_permission}" /></span></h:outputLink>

                </h:panelGroup>
            </li>
        </ul>
    </div>
</div>

<div class="menuuser">
    <div style="float: left;width:100%;">
        <div style="float: right;">
            <span style="float:left;">  <h:outputLink  value="myprofile.jsp?#{kapiMenu.md5url}">
                    <h:outputText style="float:right;margin-right:5px;" value="#{loginSession.login.hoten}" />
                    <f:param value="#{loginSession.login.id}" name="fn100M"></f:param>
                </h:outputLink></span>
            <span style="float:left;">
                <span style="float:left;"> 
                    <h:form>
                        ( <a4j:commandLink action="#{userController.logOut}" value="Log Out"></a4j:commandLink>

                    </h:form>
                </span>
                <span style="float:left;"> 
                    <h:panelGroup rendered="#{loginSession.right.MENU_ADM_VIEW}"> |
                        <h:outputLink  value="setting.jsp?#{kapiMenu.md5url}">
                            setting
                        </h:outputLink>
                    </h:panelGroup> )
                </span>
            </span>
        </div>
    </div>
   <%-- <div style="float: left;width: 100%;"><div style="float:right;margin-right: 5%;"> <h:outputText value="#{loginSession.login.sex}"/> | <a href="#"><h:outputText value="#{loginSession.login.nv851}"/></div></div>--%>
</div>
